﻿@model IList<ProductOverviewModel>
@using Nop.Web.Models.Catalog;
@if (Model.Count > 0)
{
    <div class="recent-viewed-products">
        <h2 class="list-section-title">@T("Products.RecentlyViewedProducts")</h2>
        <div class="product-container">
            @foreach (var product in Model)
            {
                <div class="recent-viewed-products-item col-md-1 col-sm-2 col-ms-3 col-xs-4">
                    <a href="@Url.RouteUrl("Product", new { SeName = product.SeName })">
                        <img src="@product.DefaultPictureModel.ImageUrl" alt="@product.Name" title="@product.Name" />
                    </a>
                </div>
            }
        </div>
    </div>
}